<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
<%@ page isErrorPage="true" import="java.io.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.ResourceBundle"%>
<%@page import="java.util.Locale"%>
<%@page import="java.util.Date"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<title>Fehler</title>
</head>
<body>
<%@ include file="header_top.jinc" %>
	<div id="wrapper">
		
		<div id="divBody">
			<h2>Operation fehlgeschlagen</h2>
			<br />
			<a href="index.jsp">zurück</a>
			<%
				String msg = exception.getClass().getName();
				String err = exception.getMessage();
				
				StringWriter sw = new StringWriter();
				PrintWriter pw = new PrintWriter(sw);
				exception.printStackTrace(pw);
				String errTrace = sw.toString();
			
			%>
			
			<p>Bitte senden Sie uns eine Mail, um uns über diesen Fehler zu informieren  
				<a href="mailto:amahfoud@guskoeln.de?subject=error on <%= (new Date()).toString()%>&body=<%= msg + err %>">melden</a>
			</p>
			<br /><br/>
			<div style="color:red;line-height: 110%;">
				Exception:<br /> <%=  msg%><br /><br/>
				Message:<br /> <%=  err%><br /><br/>
				Trace:<br /> <%=  errTrace%><br /><br/>
			</div>
		</div>
	</div>
	<%@ include file="header_bottom.jinc" %>
	</body>
</html>